package com.gupaoedu.springboot.springbootfirst.thirdDemo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @Author: JLL
 * @Date: 2019/7/4 17:16
 */
@SpringBootApplication
@EnableDefineService
public class EnableDemoMain {

    public static void main(String[] args) {
        ConfigurableApplicationContext ca=SpringApplication.run(EnableDemoMain.class,args);

        String[] defNames = ca.getBeanDefinitionNames();
        for (String defName : defNames) {
            System.out.println(defName);
        }

//        System.out.println(ca.getBean(CacheService.class));
//        System.out.println(ca.getBean(LoggerService.class));
    }
}
